import { createApp } from 'vue'
import App from './App.vue'
import store from './store'; //vuex需要在main.js里面引入
import router from './router'; //和vuex一样 引入
import DatePicker from "ant-design-vue";
import "ant-design-vue/dist/reset.css"; // or 'ant-design-vue/dist/antd.less'
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import '../src/css/flex.css';
import Viewer from 'v-viewer'
import 'viewerjs/dist/viewer.css'
import PhoHead from "../src/components/currency/phoHead.vue";//引入自定义组件

const app = createApp(App);
app.use(ElementPlus);
app.use(store);
app.use(router);
app.use(DatePicker)
app.component('PhoHead', PhoHead);//引入自定义组件
app.use(Viewer, {
    defaultOptions: {
        title: false,//手机端轮播图不展示标题
        toolbar:false,
        // transition:false,
        navbar:false,
        // scalable:false,
        // rotatable:false,
        // tooltip:false,
        // inline:false,
    }
})

app.mount('#app');

//配置公共属性
const BASEURL =
    app.config.globalProperties.$imgUrl = "http://test.fetcohrb.com/img"

// app.use(store).use(router).mount("#app");
// vue2的new Vue在v3变成了 createApp